/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.service;

import java.util.List;

import com.xrkol.sharelib.entity.Adult;

/**
 * @author peng.xia
 *
 */
public interface AdultService extends BaseService<Adult, String>{

    /**
     * 根据姓名和手机号查找家长信息
     * 
     * @param name
     * @param phone
     * @return
     */
    Adult findByNameAndPhone(String name, String phone);

    /**
     * 根据微信号查找联系人
     * 
     * @param userId
     * @return
     */
    Adult findByUserId(String userId);

    List<Adult> listAll(Integer page);

    List<Adult> getAll();


}
